<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
   @temp Comments will be delete when release
   Index page, should show login form and list snacks, can login and order dish
   @author Thymus.T 2009-05-30
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Welcome to E-SNACK!</title>
<script type="text/javascript" src="util/prototype.js"></script>
<script type="text/javascript" src="util/Tool.js"></script>
<script type="text/javascript" src="util/Utils.js"></script>
<script type="text/javascript" src="index_Script.js"></script>
<link rel='stylesheet' type='text/css' href='theme/style.css'/>
<link rel='stylesheet' type='text/css' href='theme/index.css'/>
</head>
<body>
<div id="content">
<div id="logoDiv">
<img src="./theme/logo.gif" width="100%" height="100%"/>
</div>
<form id="orderForm" onsubmit="return false" method="post">
<div id="orderDiv">
<div id="orderContent">
</div>
<div id="orderButtonDiv">
<ul>
<li><input type="button" value="" id="reviewBtn" onclick="reviewButtonClicked()"/></li>
<li><input type="button" value="" id="orderBtn" onclick="orderButtonClicked()"/></li>
</ul>
</div>
<div id="orderedInfoDiv" class="hidden">
<table >
<tr>
<td>订单号：</td><td><input type="text" name="sid"/></td><td><input type="button" name="sbtn" value="查找" onclick="getOrder()"/></td>
</tr>
</table>
<div id="orderResult">
</div>
</div>
<div id="customerInfoDiv" class="hidden">
<input type="hidden" name="startTime"/>
<input type="hidden" name="willTime"/>
<input type="hidden" name="status" value="1"/>
<table>
<tr>
<td>联系人：</td>
<td><input type="text" name="customer" size="10"/></td>
</tr>
<tr>
<td>联系电话：</td>
<td><input type="text" name="phone" size="15"/></td>
</tr>
<tr>
<td>送餐时间：</td>
<td>
<select id="hour" name="hour" style="width:50px;"></select>
<select id="time" name="minute">
<OPTION VALUE="0">00
<OPTION VALUE="15">15
<OPTION VALUE="30">30
<OPTION VALUE="45">45
</select>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>上午茶：10:00-11:00&nbsp;&nbsp;午餐：11:30-13:30&nbsp;&nbsp;下午：14:00-16:30</td>
</tr>
<tr>
<td>送餐地址：</td>
<td><input type="text" name="address" size="50"/></td>
</tr>
<tr>
<td>其他要求：</td>
<td><input type="text" name="request" size="50"/></td>
</tr>
</table>
<input type="submit" value="确定" onclick="verifyOrder()"/>
</div>
</div>
</form>
</div>

<div class="hidden">
<div id="loginFormDiv">
<div>
<input type="button" value="注册 E-SNACK 账号，订餐更方便！" onclick="linkTo('./reg.html', '_blank')"/>
</div>
<table>
<tr>
<tr>
<td>用户名：</td>
<td><input type="text" name="uid"/></td>
</tr>
<tr>
<td>密码：</td>
<td><input type="password" name="upwd"/></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" value="登陆"/>&nbsp;&nbsp;<a href="./getpass.html">忘记密码？</a></td>
</tr>
</table>
</div>
<hr/>
</div>
<script type="text/javascript">
//<![CDATA[
   init();
//]]>
</script>
</body>
</html>